package com.ht.medicaltreatment.view

import android.content.Context
import com.ht.medicaltreatment.R
import kotlinx.android.synthetic.main.dialog_log_delete_layout.*

class LogDeleteDialog(context: Context):BaseDialog(context,380f,250f) {
    override fun getLayoutRes() = R.layout.dialog_log_delete_layout
    fun showDialog(onDelete:()->Unit){
        btnNegative.setOnClickListener { dismiss() }
        btnPositive.setOnClickListener {
            dismiss()
            onDelete()
        }
        show()
    }

}